/*
 * Copyright (c) 2017 22420103@QQ.COM 版权所有
 */
package com.lehe.service.impl;

import java.time.LocalDate;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lehe.dao.IndexDao;
import com.lehe.dao.XHUserListDao;
import com.lehe.entry.IndexDto;
import com.lehe.entry.SqlParameterDto;
import com.lehe.entry.xh.UserDto;

/**
 * 微信公众号-用户首页
 *
 * @author 王丹
 * @since 2017-02-25
 */
@Transactional
@Service
public class IndexService extends AbstractService {

	@Autowired
	private XHUserListDao xHUserListDao;

    public UserDto queryUserInfoById(Long userId){
      
        List<UserDto> result = xHUserListDao.queryUserList(null, null, userId, null, LocalDate.now().toString(), LocalDate.now().toString(), null, null, null, null);
        return result.get(0);
    }
}
